package com.wb.mas.ui.help;


import android.os.Bundle;

import androidx.lifecycle.ViewModelProviders;

import com.wb.mas.R;
import com.wb.mas.app.AppViewModelFactory;
import com.wb.mas.databinding.ActHelpBinding;

import me.goldze.mvvmhabit.BR;
import me.goldze.mvvmhabit.base.BaseActivity;
import me.tatarka.bindingcollectionadapter2.BindingRecyclerViewAdapter;

/**
 * Copyright (C) 2018,
 * OrderActivity
 * <p>
 * Description
 * 关于我们
 *
 * @author yue
 * @version 1.0
 * <p>
 * Ver 1.0, 2019-04-30, yue, Create file
 */
public class HelpActivity extends BaseActivity<ActHelpBinding, HelpViewModel> {
    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.act_help;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public HelpViewModel initViewModel() {
        AppViewModelFactory factory = AppViewModelFactory.getInstance(getApplication());
        HelpViewModel helpViewModel = ViewModelProviders.of(this, factory).get(HelpViewModel.class);
        return helpViewModel;
    }

    @Override
    public void initData() {
        binding.setAdapter(new BindingRecyclerViewAdapter());
    }


}
